home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / fixes / fix024 / libray / libcommon / ray.h.diff next >
Text File  |  1995-02-13  |  888b  |  34 lines

  1. *** ray.h    Mon Oct 11 15:00:58 1993
  2. --- ray.h.frac    Mon Oct 11 14:47:19 1993
  3. ***************
  4. *** 23,28 ****
  5. --- 23,36 ----
  6.   #ifndef RAY_H
  7.   #define RAY_H
  8.   /* 
  9. +  * Ray types 
  10. +  */
  11. + #define EYE_RAY         1
  12. + #define SHADOW_RAY      2
  13. + #define REFLECT_RAY     3
  14. + #define REFRACT_RAY     4
  15. + /* 
  16.    * Ray
  17.    */
  18.   typedef struct Ray {
  19. ***************
  20. *** 31,36 ****
  21. --- 39,49 ----
  22.       int     depth,            /* depth in ray tree */
  23.           sample;            /* current sample # */
  24.       Float    time;
  25. +         Vector  viewpoint;              /* ray viewpoint */
  26. +         int     type;                   /* EYE_RAY, SHADOW_RAY, ... */
  27. +         Float   viewdist,               /* for pixelsize computation */
  28. +                 width,
  29. +                 stretch;                /* amount the ray is stretched by transformations */
  30.       struct Medium *media;        /* Medium ray is passing through */
  31.   } Ray;
  32.   #endif
  33.